<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{

        }
        div{
            line-height:100px; 
            text-align: center;
            background-color: #3d598a;
            height: 100px;
            color: #fff;
            font-size: 23px;
        }
        a{
            display: block;
            text-align: left;
            padding-left: 60px;
            height: 80px;
            line-height:80px; 
            color: #2E2D3C;
            text-decoration: none;
            box-sizing: border-box;
            font-size: 17px;
        }
        a:hover{
            cursor: pointer;
	        color: #0000FF;
        }
        img{
            width: 25px;
            vertical-align: middle;
            margin-bottom: 4px;
            margin-right: 9px;
        }
        .active {
            background: lightgrey;
            color: #0C0C0C;

        }
    </style>
    
    <script type="text/javascript" src="js/jquery.min.js" ></script>
    
</head>
<body style="background-color: white; border-right: 1px solid gray;">
    <div style="background-color: white;"><i class="layui-icon ayui-icon-template-1"></i><img src="img/loog.png" style="width: 280px; height: 50px;"/> </div>
    <a onclick="pageClick(this)" href="/xingxi" target="content" class="active"><img src="img/icon-5.png" />信息管理</a>
    <a onclick="pageClick(this)" href="/yonghu/1" target="content" ><img src="img/icon-1.png" />用户管理</a>
    <a onclick="pageClick(this)" href="/shangpin/1" target="content"><img src="img/icon-2.png" />商品管理</a>
    <a onclick="pageClick(this)" href="/dingdan/1" target="content"><img src="img/icon-3.png" />订单管理</a>
    <a onclick="pageClick(this)" href="/huiyuan" target="content"><img src="img/icon-4.png" />亮点管理</a>
    
</body>
<script>
    function pageClick(k) {
        $("a").removeClass("active");
        $(k).addClass("active");
    }
</script>
</html>